<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/hdocs/style/css/topic.css" type="text/css" rel="stylesheet" />
<link href="/hdocs/style/css/common.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/hdocs/jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript" src="/hdocs/style/js/common.js"></script>
<script type="text/javascript" src="/hdocs/style/js/topic.js"></script>
<title>主题-全部主题</title>
</head>
<body>
      #set ($menuIndex="topic") #parse("/inc/header.html")
      <p class="cenTabx">
      		<a href="/topic/subjects.jsp" class="tabax">全部主题</a>
     		<a href="/topic/articles.jsp" class="tabbx">全部文章</a>
      </p>
      <div class="centent">
            <div class="cenLe">
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <div class="listb">
                   #set ($index=0)
               	   #foreach( $subject in $allSubjects)
               	   #if($index%2==0)
                   <div class="allMe">
                   #end
                      <div class="stbLay">
                       	  #if($!subject.remark!='last') 
                             <div class="laya">
                                  <p class="addDra">
                                         <em class="yaps"><a href="/topic/subject.jsp?subjectid=$!subject.id"><img src="$!subject.images[1]"/></a></em>
                                         <a #if($!subject.isattention==1) style="display:none;" #end 
                                         		href="javascript:addSubjectAttention($!subject.id)" title="关注主题" class="guanz"><em class="addpsa"></em>关注</a>
                                  		  <a #if($!subject.isattention==0) style="display:none;" #end 
                                  		  		href="javascript:cancelSubjectAttention($!subject.id)" title="取消关注" class="guanx"><em class="addpsb"></em><span>已关注</span></a>
                                  </p>
                                  <div class="layb">
                                       <a href="/topic/subject.jsp?subjectid=$!subject.id" class="layc">$!subject.title</a>
                                       <p class="laye">$!subject.description</p>
                                  </div>
                                  <p class="laydx">
                                  		<span>关注数：$!subject.attentions</span><em>|</em>
                                  		<span class="">文章数：$!subject.articles</span>
                                  </p>
                             </div>
                       	  #end
                        </div>
                     #if($index%2==1)
                  </div>
                  #end
                  #set ($index=$index+1)
                  #end
                  </div>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  <p class="h10"></p>
                  #set ($requestURL="/topic/subjects.jsp?dataType=all")
              	  #parse("/inc/pageControl.html")
            </div>
            <div class="cenRi">
                 <p class="h10"></p>
                 <p class="h10"></p>
                 <p class="newFshx">热门文章</p>
                 #foreach( $article in $hotArticles)
                 <div class="xgBoxa">
                       <div class="xgaRi">
                             <a href="/topic/article.jsp?id=$!article.id" class="xgria">$!article.title</a>
                             <p class="layfg"><span>999次阅读</span><em>|</em><span class="">$!article.comments条回复</span></p>
                             <p class="layfj">来自:<a href="#">$!article.subjectTitle</a>主站站</p>
                       </div>
                 </div>
                 #end
            </div>
      </div>
      #parse("/inc/footer.html")
</body>
</html>
